package team.seekers.hula.course.resource.problem.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import team.seekers.hula.common.annotation.ApiResponseBody;
import team.seekers.hula.course.resource.problem.entity.vo.ProblemVO;
import team.seekers.hula.course.resource.problem.service.ProblemService;

/**
 * date: 2022/7/22
 * @author hbc
 */
@Controller
@ApiResponseBody
@RequestMapping("/problem")
public class ProblemController{

    @Autowired
    private ProblemService problemService;

    @GetMapping("/info")
    public ProblemVO info(@RequestParam String id){
        return problemService.getInfoVO(id);
    }

}
